import React, {Component} from "react";
class List extends Component{
    constructor(){
        super()
        this.state={
            list:['111','222','333']
        }
    }

    render(){
        let listdom=this.state.list.map(item=><li>{item}</li>)
        return(
            <div>
                <ul>
                    {this.state.list.map(item=><li>{item}</li>)}
                </ul>
                <hr/>
                <ul>
                    {listdom}
                </ul>
            </div>
            
        )
    }
}
export default List